package com.bringway.framework.domain;

import java.util.Iterator;

public class ArrayIterator implements Iterator {
	private Object[] array;
	int index=0;
	
	public ArrayIterator(Object[] array){
		this.array = array;
	}
	
	public boolean hasNext() {
		return index<array.length;
	}

	public Object next() {
		return array[index++];
	}

	public void remove() {
		throw new UnsupportedOperationException("remove not supported");
	}

}
